﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="type_XX.aspx.cs" Inherits="Dryricenet.houTai.type_XX" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <style>
        .tr1 {
            text-align:center;
            color:#ffffff;
            font-weight:bolder;
        }
         .tr{
            color:#ffffff;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width="98%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#1c232f"
            style="border-collapse: collapse">
            <tbody>
                <tr class="tr1">
                    <td bgcolor="#1c232f" style="padding-left: 5px; height: 25px">
                        轮播图信息
                    </td>
                </tr>
                <tr>
                    <td style="padding-left: 5px; height: 25px">
                        类别名称：<asp:TextBox ID="txtName" runat="server" Style='border: solid 1px #000000;color: #666666' Width="238px"></asp:TextBox>
                        &nbsp;<asp:Button ID="Search" runat="server" OnClick="Search_Click" Text="查找" Style='border: solid 1px #000000;
                            color: #666666' />
                        &nbsp;<asp:Button ID="Export" runat="server" OnClick="Export_Click" Text="数据导出EXCEL"
                            Style='border: solid 1px #000000; color: #666666' />
                        <br />
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" EmptyDataText="未查询到数据" AllowPaging="True" AllowSorting="True" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="FoodTypeID">
                            <Columns>
                                <asp:BoundField DataField="FoodTypeID" HeaderText="序号" ReadOnly="True" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="FoodTypeName" HeaderText="名称" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="操作" ShowHeader="False">
                                    <EditItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" Text="更新"></asp:LinkButton>
                                        &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel" Text="取消"></asp:LinkButton>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit" Text="编辑"></asp:LinkButton>
                                         <a href="type_Delete.aspx?FoodTypeID=<%#DataBinder.Eval(Container.DataItem, "FoodTypeID") %>"onclick="return confirm('是否删除？')">删除</a>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <br />
                        
                    </td>
                </tr>
                <tr class="tr">
                    <td bgcolor="#1c232f" style="padding-left: 5px; height: 25px">
                        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                        <input type="button" name="Submit5" value="返回" onclick="javascript:history.back();" />
                        <input type="button" name="Submit52" value="打印" onclick="javascript:window.print();" />
                    </td>
                </tr>
            </tbody>
        </table>
        </div>
    </form>
</body>
</html>
